import 'package:flutter/material.dart';

class FifthPage extends StatelessWidget {
  final arguments;

  const FifthPage({Key? key, this.arguments}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    print(arguments);
    return Scaffold(
      appBar: AppBar(
        title: Text("路由其他方法测试FifthPage"),
      ),
      body: Column(
        children: [
          Text(
            "${arguments != null ? arguments['content'] : "FifthPage"}",
            style: TextStyle(
                color: Colors.red, fontSize: 30, fontWeight: FontWeight.bold),
          ),
          RaisedButton(
            onPressed: () {
              Navigator.pushNamed(context, "/sixth");
            },
            child: Text("跳转Sixth page"),
          ),
        ],
      ),
    );
  }
}
